package models;

import java.math.BigInteger;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import play.db.jpa.Model;
@Entity
@Table(name="ponto_turistico")
public class PontoTuristico extends Model {

	public String cidade;

	@Lob @Basic(fetch=FetchType.LAZY)
	public String descricao;

	@Lob @Basic(fetch=FetchType.LAZY)
	@Column(nullable = true, length = 5242880)
	public byte[] foto;

	public String localizacao;
	@Column(nullable = false)
	@Basic(optional = false)
	public String nome;

	public BigInteger version;

}
